#include <pthread.h>
#include "request.h"
using namespace std;

//Constructor
request::request(int trackNum, int workSize, int requestingTid) {
	this->trackNum = trackNum;
	this->workSize = workSize;
	this->requestingTid = requestingTid;
	pthread_cond_init(&CVWorkComplete, NULL);
}

//Destructor
request::~request() {
	pthread_cond_destroy(&CVWorkComplete);
}

/*
	Setters and Getters
*/
bool request::setTrackNum (int newTrackNum) {
	this->trackNum = newTrackNum;
	return true;
}

// Trac
int request::getTrackNum () {
	return this->trackNum;
}

bool request::setWorkSize (int newWorkSize) {
	return this->workSize = newWorkSize;
	return true;
}

int request::getWorkSize () {
	return this->workSize;
}

int request::getRequestingTid() {
	return this->requestingTid;
}
